package com.westos.anno;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    @Qualifier("userDao1")
    private UserDao userDao;

    @Value("${driver}")
    private String name;


    public void removeUser(){
        System.out.println(name);
        if(userDao==null){
            System.out.println("userdao未正确装配");
        }else{
            System.out.println("userdao已经正确装配");
        }
        System.out.println("删除用户");
    }
}